package protocol;

/**
 *
 * @author Simão Paulo Rato Alves Reis
 */
public enum ProtocolCode {

    ACCOUNT_REGISTER((byte) 0), ACCOUNT_ACCESS((byte) 1),
    REGISTER_GRANTED((byte) 2), ACCESS_GRANTED((byte) 3);
    private byte code;

    ProtocolCode(byte code) {
        this.code = code;
    }

    public byte getByte() {
        return code;
    }

    public byte[] getBytes() {
        return new byte[]{code};
    }
}
